/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package apresentacao;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Pedro
 * @author Thiago
 */
public class Main {
    
    public static void main(String[] args) {
        
        SwingUtilities.invokeLater(new Runnable() {
//        java.awt.EventQueue.invokeLater(new Runnable() {
        @Override //annotation if you are using Java >= 1.5
        public void run() {
            
            // Deixar a aparencia do mesmo jeito do Design do JFrame
            try {
                UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName());
            } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            }
                        
            Controle ctrl = new Controle();
            ctrl.iniciaSessao();
            ctrl.criaInterface();
        }
        });
        
    }
    
}
